package com.charger.topuphistory.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.charger.topuphistory.mapper.TopuphistoryMapper;
import com.charger.topuphistory.domain.Topuphistory;
import com.charger.topuphistory.service.ITopuphistoryService;

/**
 * 充值记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-26
 */
@Service
public class TopuphistoryServiceImpl implements ITopuphistoryService 
{
    @Autowired
    private TopuphistoryMapper topuphistoryMapper;

    /**
     * 查询充值记录
     * 
     * @param topuphistoryId 充值记录主键
     * @return 充值记录
     */
    @Override
    public Topuphistory selectTopuphistoryByTopuphistoryId(Long topuphistoryId)
    {
        return topuphistoryMapper.selectTopuphistoryByTopuphistoryId(topuphistoryId);
    }

    /**
     * 查询充值记录列表
     * 
     * @param topuphistory 充值记录
     * @return 充值记录
     */
    @Override
    public List<Topuphistory> selectTopuphistoryList(Topuphistory topuphistory)
    {
        return topuphistoryMapper.selectTopuphistoryList(topuphistory);
    }

    /**
     * 新增充值记录
     * 
     * @param topuphistory 充值记录
     * @return 结果
     */
    @Override
    public int insertTopuphistory(Topuphistory topuphistory)
    {
        return topuphistoryMapper.insertTopuphistory(topuphistory);
    }

    /**
     * 修改充值记录
     * 
     * @param topuphistory 充值记录
     * @return 结果
     */
    @Override
    public int updateTopuphistory(Topuphistory topuphistory)
    {
        return topuphistoryMapper.updateTopuphistory(topuphistory);
    }

    /**
     * 批量删除充值记录
     * 
     * @param topuphistoryIds 需要删除的充值记录主键
     * @return 结果
     */
    @Override
    public int deleteTopuphistoryByTopuphistoryIds(Long[] topuphistoryIds)
    {
        return topuphistoryMapper.deleteTopuphistoryByTopuphistoryIds(topuphistoryIds);
    }

    /**
     * 删除充值记录信息
     * 
     * @param topuphistoryId 充值记录主键
     * @return 结果
     */
    @Override
    public int deleteTopuphistoryByTopuphistoryId(Long topuphistoryId)
    {
        return topuphistoryMapper.deleteTopuphistoryByTopuphistoryId(topuphistoryId);
    }
}
